﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPFServices.Models
{
    /// <summary>
    /// 审计实体基类
    /// </summary>
    public class AuditableEntity : BaseEntity
    {
        public DateTime CreatedAt { get; set; } = DateTime.Now;
        public int? CreatedBy { get; set; }
        public string? CreatedByUserName { get; set; }
        public DateTime? UpdatedAt { get; set; }
        public int? UpdatedBy { get; set; }
        public string? UpdatedByUserName { get; set; }
        public bool IsDeleted { get; set; } = false;
        public DateTime? DeletedAt { get; set; }
        public int? DeletedBy { get; set; }
        public string? DeletedByUserName { get; set; }
    }

    /// <summary>
    /// 基础实体类
    /// </summary>
    public abstract class BaseEntity
    {
        public int Id { get; set; }
    }

}
